﻿@{
    ViewBag.Title = "PhotoAdd";
}

<h2></h2>

<script>
    function upLoad() {
        var img = $("#first").val();
        $("#one").val = img;
    }
</script>

<table style="text-align:right;">
    <tr>
        <th style="font-size:14px;">项目号：</th>
        <td><input class="easyui-textbox" data-options="prompt:'请输入...',validType:'txtname'" value="@ViewBag.id" disabled="disabled" style="width:300px;height:24px"></td>
    </tr>
    <tr>
        <th style="font-size:14px;">外部环境：</th>
        <td>
            <input type="file" id="first" /><input type="button" onclick="upLoad()" value="上传" />
        </td>
        <td id="one"></td>
    </tr>
    <tr>
        <th>小区入口：</th>
        <td>
            <input type="file" id="second" />
        </td>
    </tr>
    <tr>
        <th>小区内部环境：</th>
        <td>
            <input type="file" id="third" />
        </td>
    </tr>
    <tr>
        <th>建筑外观：</th>
        <td>
            <input type="file" id="fouth" />
        </td>
    </tr>
    <tr>
        <th>建筑楼牌：</th>
        <td>
            <input type="file" id="fifth" />
        </td>
    </tr>
    <tr>
        <th>单元门：</th>
        <td>
            <input type="file" id="sixth" />
        </td>
    </tr>
    <tr>
        <th>入户门：</th>
        <td>
            <input type="file" id="seventh" />
        </td>
    </tr>
    <tr>
        <th>居室：</th>
        <td>
            <input type="file" id="eighth" />
        </td>
    </tr>
    <tr>
        <th>客厅：</th>
        <td>
            <input type="file" id="nenth" />
        </td>
    </tr>
    <tr>
        <th>厨房：</th>
        <td>
            <input type="file" id="tenth" />
        </td>
    </tr>
    <tr>
        <th>卫生间：</th>
        <td>
            <input type="file" id="eleventh" />
        </td>
    </tr>
    <tr>
        <th>阳台：</th>
        <td>
            <input type="file" id="" />
        </td>
    </tr>
    <tr>
        <th>其他：</th>
        <td>
            <input type="file" id="others" />
        </td>
    </tr>
    <tr style="text-align:center">
        <td colspan="2"><a href="#" class="easyui-linkbutton" iconcls="icon-add">保存</a></td>
    </tr>
</table>

<script>
    $(function () {
        $("#file1").on("change", function () {
            var file = this.File[0];
            if (this.File && file) {
                var reader = new FileReader();
                reader.readAsDataURL(file);
            }
        })
    })

    function upLoad() {
        $.ajax({

        })
    }

</script>
